//package Study;

import java.sql.SQLOutput;
import java.util.ArrayList;
import java.util.Scanner;

public class noteBook {
    private ArrayList<String> notes = new ArrayList<String>();

   public void add(String s){
        notes.add(s);
   }
   public void add1(String s , int location){
       notes.add(location,s);
   }
   public int getsize(){
       return notes.size();
   }
   public String getNote(int index){
       return notes.get(index);
   }
   public void removeNote(int index){
       notes.remove(index);
   }
   public String [] list(){
       String []a = new String[notes.size()];
       notes.toArray(a);
       return a;
   }

    public static void main1(String[] args) {
        int[] a = {1,2,3,4,5};
        for (int x: a ){
            System.out.println(x);
        }
    }

    public static void main(String[] args){
        Scanner in = new Scanner(System.in);
        noteBook vm = new noteBook();
        int n = in.nextInt();
        in.nextLine();//吞掉n所带来的回车
        for(int i=0;i<n;i++){
           String s = in.nextLine();
            vm.notes.add(s);
        }
        String[] a = vm.list();
        for (int i = 0; i < a.length; i++) {
            System.out.println(a[i]);
        }
//        for(String s : a){
//            System.out.println(s);
//        }

    }
}